package com.cloud.quartz.utils;

import com.cloud.quartz.domain.SysJob;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 描述：定时任务处理（禁止并发执行）
 *
 * @author FineEx   2021/11/15
 * @version 1.0
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob
{
    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception
    {
        JobInvokeUtils.invokeMethod(sysJob);
    }
}
